home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / Icon / c / ForceWR < prev    next >
Text File  |  1995-07-08  |  759b  |  23 lines

  1. #include "DeskLib:Wimp.h"
  2. #include "DeskLib:WimpSWIs.h"
  3. #include "DeskLib:Icon.h"
  4.  
  5. extern void Icon_ForceWindowRedraw(window_handle window, icon_handle icon)
  6. /*  Force Redraws the area of WINDOW surrounding the icon, *including*
  7.  *  the 3-d border (validation string "b<bordertype>")
  8.  *  This is a bit obsolete now, but is still included as it may be useful
  9.  *  code to look at if you want to do similar stuff...
  10.  */
  11. {
  12.   window_redrawblock r;
  13.   icon_block         istate;
  14.  
  15.   Wimp_GetIconState(window, icon, &istate);
  16.   r.window    = window;
  17.   r.rect.min.x = istate.workarearect.min.x - 4;
  18.   r.rect.max.x = istate.workarearect.max.x + 4;
  19.   r.rect.min.y = istate.workarearect.min.y - 4;
  20.   r.rect.max.y = istate.workarearect.max.y + 4;
  21.   Wimp_ForceRedraw(&r);
  22. }
  23.